/* 会员服务页面样式 */

/* 页面头部 */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 付费周期切换 */
.pricing-toggle {
    margin-bottom: 40px;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.toggle-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

/* 价格计划 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.plan-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
}

.plan-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.plan-price {
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.plan-features {
    padding: 30px;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

.plan-features li img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 统一图标样式 */
.check-icon, .cross-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    text-align: center;
    font-weight: bold;
    flex-shrink: 0;
}

.check-icon {
    color: #22c55e;
}

.cross-icon {
    color: #ef4444;
}

.feature-included {
    color: var(--text-color);
}

.feature-excluded {
    color: var(--text-light);
}

.plan-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.plan-footer .btn {
    width: 100%;
    padding: 12px;
}

/* 功能对比表 */
.features-comparison {
    margin-bottom: 60px;
}

.features-comparison h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-color);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    height: 50px;
}

.comparison-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    vertical-align: middle;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table tr:hover {
    background-color: var(--bg-light);
}

.feature-name {
    font-weight: 500;
    color: var(--text-color);
}

/* 表格内容统一居中对齐 */
.comparison-table td {
    text-align: center;
    vertical-align: middle;
    position: relative;
}

/* 功能名称列左对齐 */
.comparison-table td:first-child {
    text-align: left;
}

/* 图标样式 - 确保完美居中 */
.comparison-table img {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

/* 常见问题 */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA区域 */
.cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    margin-bottom: 0;
}

.cta-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .plan-card.featured {
        transform: scale(1.03);
    }
    
    .plan-card.featured:hover {
        transform: scale(1.03) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .plan-card.featured {
        transform: none;
        order: -1;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .toggle-container {
        flex-wrap: wrap;
    }
    
    .plan-header {
        padding: 20px;
    }
    
    .plan-features,
    .plan-footer {
        padding: 20px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}